package com.ty.skysystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ty.common.utils.PageUtils;
import com.ty.skysystem.entity.DriverEntity;
import com.ty.skysystem.entity.req.DriverEntityREQ;
import com.ty.skysystem.entity.req.TruckEntityREQ;
import com.ty.skysystem.entity.vo.TruckEntityVo;

import java.util.List;
import java.util.Map;

/**
 * 驾驶员信息表: 用于存放和管理驾驶员信息 字段列: team_id => 对应表: truck_team
 *
 * @author tianyuzhu
 * @email 1659770218@QQ.COM
 * @date 2020-12-11 15:40:53
 */
public interface DriverService extends IService<DriverEntity> {

  PageUtils queryPage(Map<String, Object> params);

  PageUtils selectDriversWithoutBoundVehicles(
      Integer page, Integer limit, DriverEntityREQ driverEntityREQ);

  PageUtils selectVehicleWithoutDriverBound(
      Integer page, Integer limit, TruckEntityREQ truckEntityREQ);

  List<TruckEntityVo> selectTruckIsDriverId(Integer driverId);
}
